{template 'web/common/common'}
{template 'web/problem/navbar'}
<link rel="stylesheet" type="text/css" href="../addons/kundian_farm/resource/css/style.css" />
<div class="panel panel-success">
    <div class="panel-heading">
        <h3 class="panel-title">
            常见问题设置
        </h3>
    </div>
    <div class="panel-body">
        <form id="sign-form" class="form-horizontal" role="form" method="post" action="{url 'site/entry/problem',array('m'=>'kundian_farm','op'=>'problem_set_save','version_id'=>$_GPC['version_id'])}" name="submit" style="padding: 20px 0;">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">提示：常见问题板块在首页轮播图右上角展示！图标为首页右上角展示图标！</h3>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否开启常见问题展示板块</label>
                <div class="col-sm-8">
                    {if $list['is_open_problem']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="is_open_problem">
                    {else}
                    <input type="checkbox" class="js-switch" name="is_open_problem" value="1">
                    {/if}
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">展示图标(20*20)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('problem_icon',$list['problem_icon']);}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否开启联系客服按钮</label>
                <div class="col-sm-8">
                    {if $list['is_open_service']==1}
                    <input type="checkbox" checked class="js-switch" value="1" name="is_open_service">
                    {else}
                    <input type="checkbox" class="js-switch" name="is_open_service" value="1">
                    {/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">按钮图标(20*20)</label>
                <div class="col-sm-8">
                    {php echo tpl_form_field_image('service_icon',$list['service_icon']);}
                    <p style="color: gray;">若不上传按钮图标将显示默认图标</p>
                </div>
                <br>

            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>
